package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

    
/**
 * 金额详情流水表 user_money_detail
 *
 * @author houyijun
 * @date 2019-01-25
 */
public class UserMoneyDetail extends BaseEntity{
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/**  */
	private Integer userId;
	/** 收获的金额/扣除的金额 */
	private BigDecimal money;
	/** 剩余金额 */
	private BigDecimal afterMoney;
	/** 类型，0收获金额，1扣除金额 */
	private Integer type;
	/** 描述 */
	private String description;
	/** 目标id */
	private Integer objectId;
	/** 目标类型 */
	private Integer objectType;
	/** 创建时间 */
	private Date createTime;
	/** 删除标识 0-未删除 2-已删除 */
	private Integer delFlag;

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return id;
	}
	public void setUserId(Integer userId){
		this.userId = userId;
	}

	public Integer getUserId(){
		return userId;
	}
	public void setMoney(BigDecimal money){
		this.money = money;
	}

	public BigDecimal getMoney(){
		return money;
	}
	public void setAfterMoney(BigDecimal afterMoney){
		this.afterMoney = afterMoney;
	}

	public BigDecimal getAfterMoney(){
		return afterMoney;
	}
	public void setType(Integer type){
		this.type = type;
	}

	public Integer getType(){
		return type;
	}
	public void setDescription(String description){
		this.description = description;
	}

	public String getDescription(){
		return description;
	}
	public void setObjectId(Integer objectId){
		this.objectId = objectId;
	}

	public Integer getObjectId(){
		return objectId;
	}
	public void setObjectType(Integer objectType){
		this.objectType = objectType;
	}

	public Integer getObjectType(){
		return objectType;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return createTime;
	}
	public void setDelFlag(Integer delFlag){
		this.delFlag = delFlag;
	}

	public Integer getDelFlag(){
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("money", getMoney())
            .append("afterMoney", getAfterMoney())
            .append("type", getType())
            .append("description", getDescription())
            .append("objectId", getObjectId())
            .append("objectType", getObjectType())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
